package com.tenbent.product.center.insures.service;

import com.tenbent.product.base.service.BaseService;
import com.tenbent.product.center.insures.bo.Product;
import com.tenbent.product.center.insures.dto.ProductDto;
import org.springframework.cache.annotation.Cacheable;

/**
 * 产品服务层
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/21.
 */
public interface ProductService extends BaseService<Product> {

	@Cacheable(value = "PRODUCT_CACHE", key = "#root.methodName+ '_product_' +#pdCode", unless = "#result == null")
	ProductDto findProductByCode(String pdCode);
}
